#include <ymatrix_components.hpp>
Public Member Functions | |
YMBus (void) | |
~YMBus (void) | |
bool | matrixDiagSize (int *isize, int *jsize) const |
bool | matrixDiagValues (ComplexType *values) |
void | setYBus (void) |
void | setYBusDiag (double rval, double ival) |
gridpack::ComplexType | getYBus (void) |
void | load (const boost::shared_ptr< gridpack::component::DataCollection > &data) |
void | setMode (int mode) |
bool | isIsolated (void) const |
void | setIsolated (const bool flag) |
void | getShuntValues (double *bl, double *gl) const |
void | setParam (std::string name, double value, int idx) |
gridpack::ymatrix::YMBus::YMBus | ( | void | ) |
Simple constructor
gridpack::ymatrix::YMBus::~YMBus | ( | void | ) |
Simple destructor
void gridpack::ymatrix::YMBus::getShuntValues | ( | double * | bl, | |
double * | gl | |||
) | const |
Get shunt values
gl | shunt GL value | |
bl | shunt BL value |
gridpack::ComplexType gridpack::ymatrix::YMBus::getYBus | ( | void | ) |
Get values of YBus matrix. These can then be used in subsequent calculations
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
bool gridpack::ymatrix::YMBus::isIsolated | ( | void | ) | const |
Return whether or not a bus is isolated
Reimplemented in gridpack::state_estimation::SEBus.
void gridpack::ymatrix::YMBus::load | ( | const boost::shared_ptr< gridpack::component::DataCollection > & | data | ) | [virtual] |
Load values stored in DataCollection object into YMBus object. The DataCollection object will have been filled when the network was created from an external configuration file
data,: | DataCollection object contain parameters relevant to this bus that were read in when network was initialized |
Reimplemented from gridpack::component::BaseComponent.
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
bool gridpack::ymatrix::YMBus::matrixDiagSize | ( | int * | isize, | |
int * | jsize | |||
) | const [virtual] |
Return size of matrix block on the diagonal contributed by component
isize,jsize,: | number of rows and columns of matrix block |
Reimplemented from gridpack::component::MatVecInterface.
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
bool gridpack::ymatrix::YMBus::matrixDiagValues | ( | ComplexType * | values | ) | [virtual] |
Return the values of for a diagonal matrix block. The values are returned in row-major order
values,: | pointer to matrix block values |
Reimplemented from gridpack::component::MatVecInterface.
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
void gridpack::ymatrix::YMBus::setIsolated | ( | const bool | flag | ) |
Change isolated status of bus
flag | true if bus is isolated |
void gridpack::ymatrix::YMBus::setMode | ( | int | mode | ) | [virtual] |
Set the mode to control what matrices and vectors are built when using the mapper
mode,: | enumerated constant for different modes |
Reimplemented from gridpack::component::BaseComponent.
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
void gridpack::ymatrix::YMBus::setParam | ( | std::string | name, | |
double | value, | |||
int | idx | |||
) |
void gridpack::ymatrix::YMBus::setYBus | ( | void | ) |
Set values of YBus matrix. These can then be used in subsequent calculations
Reimplemented in gridpack::powerflow::PFBus, and gridpack::state_estimation::SEBus.
void gridpack::ymatrix::YMBus::setYBusDiag | ( | double | rval, | |
double | ival | |||
) |
Modify diagonal values of matrix.
rval | real part of diagonal matrix element | |
ival | imaginary part of diagonal matrix element |